home *** CD-ROM | disk | FTP | other *** search
- Path: coranto.ucs.mun.ca!mlangdon
- From: mlangdon@morgan.ucs.mun.ca (Michael Langdon)
- Newsgroups: comp.lang.c++
- Subject: illegal initilization
- Date: 28 Jan 1996 19:26:50 GMT
- Organization: Memorial University of Newfoundland
- Message-ID: <4egilq$ekc@coranto.ucs.mun.ca>
- NNTP-Posting-Host: plato.ucs.mun.ca
- X-Newsreader: TIN [version 1.2 PL2]
-
- I trying to write code that changes vga mode then paints the screen .
- The code I am following is written for TC++ 3.0 but I am using TC++ 1.0
- All the code works but one line. Can anybody tell what the line should be
- in TC++ 1.0 (I am planning on getting a newer version VERY soon)
- The error comes up as illegal initilization for the line unsigned char
- *vga ...
-
- #include <dos.h>
- #include <mem.h>
- #include <string.h>
-
-
- unsigned char *vga = (unsigned char *) MK_FP(0xA000, 0);
-
- main()
- {
- _AX = 0x003;
- geninterrupt(0x10);
- memset(vga,200,0xffff);
- .
- .
- .
-
-
- --
-
- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
- /\ Mike Langdon /\
- /\ mlangdon@plato.ucs.mun.ca /\
- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-
-
-